package vip.xiaonuo.modular.manage.tsdatarecord.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;
import vip.xiaonuo.core.pojo.response.ResponseData;
import vip.xiaonuo.core.pojo.response.SuccessResponseData;
import vip.xiaonuo.modular.manage.tsdatarecord.service.BaseDataDefineService;

/**
 * BaseDataDefineController
 *
 * @author JackLee
 * 2022/8/26 18:56
 */
@RestController
public class BaseDataDefineController {

    @Autowired
    private BaseDataDefineService baseDataDefineService;

    @GetMapping("/baseDataDefine/one/{recordId}")
    public ResponseData getByRecordId(@PathVariable("recordId") Long recordId) {
        return new SuccessResponseData(baseDataDefineService.getByRecordId(recordId));
    }
}
